package com.swust.security;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@MapperScan(value = "com.swust.security.mapper")
@EnableGlobalMethodSecurity(securedEnabled = true,
        prePostEnabled = true) // 开启Spring Security 注解
public class SpringsecurityWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringsecurityWebApplication.class, args);
    }
}
